﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diablo_Character_Simulator.Enumerators
{
    enum Class
    {
        None,
        Barbarian,
        DemonHunter,
        Monk,
        WitchDoctor,
        Wizard
    }
    
    public static class ClassHelper
    {
        public static StatType GetPrimaryStat(Class charClass)
        {
            switch (charClass)
            {
                case Class.Barbarian:
                    return StatType.Strength;
                case Class.DemonHunter:
                    return StatType.Dexterity;
                case Class.Monk:
                    return StatType.Dexterity;
                case Class.WitchDoctor:
                    return StatType.Intelligence;
                case Class.Wizard:
                    return StatType.Intelligence;
                default:
                    throw new ArgumentException("Invalid character class.");
            }
        }

        public static int GetBaseStat(Class charClass, StatType stat, int level)
        {
            if (stat == StatType.Vitality) return 9 + level * 2;
            else if (stat == GetPrimaryStat(charClass)) return 10 + level * 3;
            else return 8 + level * 1;
        }
    }
}
